﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="StatItem.aspx.cs" Inherits="Pages_StatItem" MasterPageFile="~/Admin/MasterPage.master" Title="统计项管理" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div class="toolbar">
        <XCL:LinkBox ID="lbAdd" runat="server" BoxHeight="1183px" BoxWidth="440px" Url="StatItemForm.aspx"
            IconLeft="../images/icons/icon005a2.gif"><b>添加统计项</b></XCL:LinkBox>
        关键字：<asp:TextBox ID="txtKey" runat="server"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" Text="查询" />
    </div>
    <asp:GridView ID="gvStatItem" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="ObjectDataSource1" AllowPaging="True" AllowSorting="True" CssClass="m_table" PageSize="20" CellPadding="0" GridLines="None" EnableModelValidation="True">
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="编号" SortExpression="ID" InsertVisible="False" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" CssClass="key" />
            </asp:BoundField>
            <asp:BoundField DataField="SiteID" HeaderText="站点编号" SortExpression="SiteID" />
            <asp:BoundField DataField="Period" HeaderText="期限" SortExpression="Period" />
            <asp:BoundField DataField="Type" HeaderText="类型" SortExpression="Type" />
            <asp:BoundField DataField="SubType" HeaderText="" SortExpression="SubType" />
            <asp:BoundField DataField="Item" HeaderText="项" SortExpression="Item" />
            <asp:BoundField DataField="Count1" HeaderText="数量1" SortExpression="Count1" />
            <asp:BoundField DataField="Count2" HeaderText="数量2" SortExpression="Count2" />
            <asp:BoundField DataField="Count3" HeaderText="数量3" SortExpression="Count3" />
            <asp:BoundField DataField="Count4" HeaderText="数量4" SortExpression="Count4" />
            <asp:BoundField DataField="Count5" HeaderText="数量5" SortExpression="Count5" />
            <asp:BoundField DataField="Count6" HeaderText="数量6" SortExpression="Count6" />
            <asp:BoundField DataField="Count7" HeaderText="数量7" SortExpression="Count7" />
            <asp:BoundField DataField="Count8" HeaderText="数量8" SortExpression="Count8" />
            <asp:BoundField DataField="Count9" HeaderText="数量9" SortExpression="Count9" />
            <asp:BoundField DataField="Count10" HeaderText="数量10" SortExpression="Count10" />
            <asp:BoundField DataField="Count11" HeaderText="数量11" SortExpression="Count11" />
            <asp:BoundField DataField="Count12" HeaderText="数量12" SortExpression="Count12" />
            <asp:BoundField DataField="Count13" HeaderText="数量13" SortExpression="Count13" />
            <asp:BoundField DataField="Count14" HeaderText="数量14" SortExpression="Count14" />
            <asp:BoundField DataField="Count15" HeaderText="数量15" SortExpression="Count15" />
            <asp:BoundField DataField="Count16" HeaderText="数量16" SortExpression="Count16" />
            <asp:BoundField DataField="Count17" HeaderText="数量17" SortExpression="Count17" />
            <asp:BoundField DataField="Count18" HeaderText="数量18" SortExpression="Count18" />
            <asp:BoundField DataField="Count19" HeaderText="数量19" SortExpression="Count19" />
            <asp:BoundField DataField="Count20" HeaderText="数量20" SortExpression="Count20" />
            <asp:BoundField DataField="Count21" HeaderText="数量21" SortExpression="Count21" />
            <asp:BoundField DataField="Count22" HeaderText="数量22" SortExpression="Count22" />
            <asp:BoundField DataField="Count23" HeaderText="数量23" SortExpression="Count23" />
            <asp:BoundField DataField="Count24" HeaderText="数量24" SortExpression="Count24" />
            <asp:BoundField DataField="Count25" HeaderText="数量25" SortExpression="Count25" />
            <asp:BoundField DataField="Count26" HeaderText="数量26" SortExpression="Count26" />
            <asp:BoundField DataField="Count27" HeaderText="数量27" SortExpression="Count27" />
            <asp:BoundField DataField="Count28" HeaderText="数量28" SortExpression="Count28" />
            <asp:BoundField DataField="Count29" HeaderText="数量29" SortExpression="Count29" />
            <asp:BoundField DataField="Count30" HeaderText="数量30" SortExpression="Count30" />
            <asp:BoundField DataField="Count31" HeaderText="数量31" SortExpression="Count31" />
            <asp:BoundField DataField="BackupNo" HeaderText="备份编号" SortExpression="BackupNo" />
            <asp:BoundField DataField="BackupOperator" HeaderText="备份操作者" SortExpression="BackupOperator" />
            <asp:BoundField DataField="BackupTime" HeaderText="备份时间" SortExpression="BackupTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="BackupMemo" HeaderText="备份注释" SortExpression="BackupMemo" />
            <XCL:LinkBoxField HeaderText="编辑" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="StatItemForm.aspx?ID={0}" Height="1183px" Text="编辑" Width="440px" Title="编辑统计项">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </XCL:LinkBoxField>
            <asp:TemplateField ShowHeader="False" HeaderText="删除">
                <ItemTemplate>
                    <asp:LinkButton ID="btnDelete" runat="server" CausesValidation="False" CommandName="Delete"
                        OnClientClick='return confirm("确定删除吗？")' Text="删除"></asp:LinkButton>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
            没有符合条件的数据！
        </EmptyDataTemplate>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="NXCMS.CMS.StatItem"
        DeleteMethod="Delete" EnablePaging="True" OldValuesParameterFormatString="original_{0}"
        SelectCountMethod="SearchCount" SelectMethod="Search" SortParameterName="orderClause"
        TypeName="NXCMS.CMS.StatItem">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtKey" Name="key" PropertyName="Text" Type="String" />
            <asp:Parameter Name="orderClause" Type="String" />
            <asp:Parameter Name="startRowIndex" Type="Int32" />
            <asp:Parameter Name="maximumRows" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <XCL:GridViewExtender ID="gvExt" runat="server">
    </XCL:GridViewExtender>
</asp:Content>